<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>检测变量是否为资源类型</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.is-real.html">is_real</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.is-scalar.html">is_scalar</a></div>
 <div class="up"><a href="ref.var.html">Variable handling 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.is-resource" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">is_resource</h1>
    <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">is_resource</span> &mdash; <span class="dc-title">
     检测变量是否为资源类型
    </span></p>

   </div>
   <div class="refsect1 unknown-unknown-unknown-unknown-unknown-unknown-unknown-unknown-unknown-unknown-seealsy" id="refsect1-function.is-resource-unknown-unknown-unknown-unknown-unknown-unknown-unknown-unknown-unknown-unknown-seealsy">
    <h3 class="title">描述</h3>
     <div class="methodsynopsis dc-description">
      <span class="type">bool</span> <span class="methodname"><strong>is_resource</strong></span>
       ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var</code></span>
      )</div>

    <p class="para rdfs-comment">
     如果给出的参数 <em><code class="parameter">var</code></em> 是 <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span> 类型，<span class="function"><strong>is_resource()</strong></span>
     返回 <strong><code>TRUE</code></strong>，否则返回 <strong><code>FALSE</code></strong>。
    </p>
    <p class="para">
     查看 <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span> 类型文档获取更多的信息。
    </p>
   </div>

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.is-real.html">is_real</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.is-scalar.html">is_scalar</a></div>
 <div class="up"><a href="ref.var.html">Variable handling 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
